import { createApp } from 'vue'

import '@/styles/index.scss'
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/notify/style'
import 'vant/es/image-preview/style'

import App from './App.vue'
import pinia from '@/stores/index'
import router from './router'

// 注册图标
import 'virtual:svg-icons-register'
console.log('环境变量：', import.meta.env)
const app = createApp(App)

// 注册pinia
app.use(pinia)
console.log('环境变量：', import.meta.env)
// 注册路由
app.use(router)
console.log('环境变量：', import.meta.env)

app.mount('#app')
